<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" deferredSyntaxAllowedAsLiteral="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
	<link rel="stylesheet" href="/css/main.css">
	<link rel="stylesheet" href="/css/font-awesome/css/font-awesome.css">
	<script src="/js/jQuery.js"></script>
</head>
<body>
<div class="box">
	<h3>添加合同信息</h3>
	<form action="/contract/add" method="post">
		<table class="form-table">
			<tr>
				<td>租户姓名</td>
				<td colspan="3" class="control">
					<select name="l_id"  style="width:260px;">
						<c:forEach items="${lss}" var="lss">
							<option value="${lss.l_id}">${lss.l_name}</option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td>房屋地址</td>
				<td colspan="3" class="control">
					<select name="flat_id"  style="width:260px;">
						<c:forEach items="${flats}" var="flats">
							<option value="${flats.h_id}">${flats.h_address}</option>
						</c:forEach>
					</select>
					<input type="text" name="h_address" placeholder="房屋地址" style="width: 260px;">
				</td>
			</tr>
			<tr>
				<td>开始日期</td>
				<td colspan="3" class="control">
					<input type="date" name="lc_contract_start_date">
				</td>
			</tr>
			<tr>
				<td>租住月数</td>
				<td colspan="3" class="control">
					<input type="text" id="month"  name="lc_month" >
				</td>
			</tr>
			<tr>
				<td>月租</td>
				<td colspan="3" class="control">
					<input type="text" id="rent"  name="lc_rent" >
				</td>
			</tr>

			<tr>
				<td>押金(元)</td>
				<td colspan="3" class="control">
					<input type="text" name="lc_deposit" style="width: 260px;" value="500"  placeholder="押金">
				</td>
			</tr>
			<tr>
				<td>签署人</td>
				<td colspan="3" class="control">
					<input type="text" name="lc_contract_signer" style="width: 260px;"  placeholder="签署人">
				</td>
			</tr>
			<tr>
				<td>合同状态</td>
				<td colspan="3" class="control">
					<select name="lc_contract_state"  style="width:260px;">
						<option value="1">已失效</option>
						<option  value="0" selected="selected">已生效</option>
					</select>
				</td>
			</tr>
		</table>

		<div class="buttons">
		<input class="btn btn-primary va-bottom" type="submit" value="保存">&nbsp;&nbsp;
		<a class="btn btn-default" href="javascript:history.go(-1)">返回</a>
	</div>
	</form>
</div>
</body>
</html>